package com.py.credit.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.py.credit.dao.CalendarTaskDao;
import com.py.credit.entity.CalendarTask;
import com.py.credit.service.CalendarTaskService;

;

@Service
public class CalendarTaskServiceImpl implements CalendarTaskService {

	@Autowired
	private CalendarTaskDao calendarTaskDao;

	@Override
	public void add(long userId, String title, String description, String datetime) {
		calendarTaskDao.add(userId, title, description, datetime);
	}

	@Override
	public void modify(int id, String title, String description, String datetime) {
		calendarTaskDao.modify(id, title, description, datetime);
	}

	@Override
	public void del(int id) {
		calendarTaskDao.del(id);
	}

	@Override
	public List<CalendarTask> getCalendarTask(long userId) {
		return calendarTaskDao.getCalendarTask(userId);
	}
}
